package com.chinaunicom.constructor;

import com.chinaunicom.bean.lookup.User;
import lombok.Data;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/11/19 9:30
 * Description:
 */
@Data
public class Car {
	private String testStr;

	private String name;
	private Integer gender;
	private Long age;
	private List<User> userList;
	private User[] users;
	private Map<String, Object> map;
	private Set<String> set;

	private User user;


	public Car(Integer gender, Long age, String name,
			   List<User> userList, User[] users,
			   Map<String, Object> map, Set<String> set) {
		this.age = age;
		this.name = name;
		this.gender = gender;
		this.users = users;
		this.userList = userList;
		this.map = map;
		this.set = set;
	}

	@Override
	public String toString() {
		return "Car{" +
				"testStr='" + testStr + '\'' +
				", name='" + name + '\'' +
				", gender=" + gender +
				", age=" + age +
				", userList=" + userList +
				", users=" + Arrays.toString(users) +
				", map=" + map +
				", set=" + set +
				'}';
	}


	public void setUser(User user){
		this.user = user;
	}
}
